import request from '@/utils/request'

// 查询历史地址查询列表
export function listIphistory(query) {
  return request({
    url: '/ipmanagement/iphistory/list',
    method: 'get',
    params: query
  })
}

// 查询历史地址查询详细
export function getIphistory(id) {
  return request({
    url: '/ipmanagement/iphistory/' + id,
    method: 'get'
  })
}

// 新增历史地址查询
export function addIphistory(data) {
  return request({
    url: '/ipmanagement/iphistory',
    method: 'post',
    data: data
  })
}

// 修改历史地址查询
export function updateIphistory(data) {
  return request({
    url: '/ipmanagement/iphistory',
    method: 'put',
    data: data
  })
}

// 删除历史地址查询
export function delIphistory(id) {
  return request({
    url: '/ipmanagement/iphistory/' + id,
    method: 'delete'
  })
}
